#include <iostream>
#include <cmath>

using namespace std;

/*//计算体积
void calcCuboid();//计算长方形的体积
void calcCylinder();//计算圆柱体的体积
void calcCone();//计算圆锥体的体积*/

/*void change(int &num){
    num++;
}*/

void show(double (*)[5],int);

int main() {
    double powers[3][5] = {
            {45.5, 55.6, 88.9, 66.6, 78},
            {98.2, 69.1, 33.7, 49.3, 58},
            {78.2, 58.5, 12.8, 37.8, 43}
    };
    show(powers,3);

    /*int values[5];
    input(values, 5);
    print(values, 5);
    print(values, 5);*/


    /*int num = 10;
    change(num);
    cout << num << endl;*/


   /* int choice = -1;
    while (choice){
        cout << "1、长方体" << endl;
        cout << "2、圆柱体" << endl;
        cout << "0、推出" << endl;
        cin >> choice;
        switch (choice) {
            case 1:
                calcCuboid();
                break;
            case 2:
                 calcCylinder();
                break;
        }
    }
    cout << "感谢使用本软件" << endl;*/
    return 0;
}
void show(double (*arrs)[5], int len){
    for (int i = 0; i < len; ++i) {
        for (int j = 0; j < 5; ++j) {
            cout << arrs[i][j] << "\t";
        }
        cout << endl;
    }
}

/*void input(int values[], int len){
    if (len > 5){
        cout << "数组长度只能是5以内" << endl;
        return;//推出返回值为viod的函数
    }
    string valueNames[] = {"体力", "智力", "魅力", "道德", "气质"};
    for (int i = 0; i < len; ++i) {
        cout << valueNames[i] << ":";
        cin >> values[i];
    }
}
void print(const int values[], int len){
    string valueNames[] = {"体力", "智力", "魅力", "道德", "气质"};
    for (int i = 0; i < len; ++i) {
        cout << valueNames[i] << ":" << values[i] << endl;
    }
}*/



/*
void calcCuboid(){
    double len, width, height;
    cout << "请输入长宽高";
    cin >> len >> width >> height;
    double v = len * width * height;
    cout << "长方体的体积为：" << v << endl;
}
void calcCylinder(){
    double radius, height;
    cout << "请输入半径和高" ;
    cin >> radius >> height;
    double pi = 4 * atan(1.0);
    double v = pi * pow(radius, 2) * height;
    cout << "圆柱体的体积为：" << v <<endl;
}*/
